<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <!-- 包含公共的JSP代码片段 -->

    <title>无线点餐平台</title>



    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/detail/style/js/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/detail/style/js/page_common.js"></script>
    <link href="${pageContext.request.contextPath}/detail/style/css/common_style_blue.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/detail/style/css/index_1.css" />
</head>
<body>

<!-- 页面标题 -->
<div id="TitleArea">
    <div id="TitleArea_Head"></div>
    <div id="TitleArea_Title">
        <div id="TitleArea_Title_Content">


            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/detail/style/images/title_arrow.gif"/> 更新新商品



        </div>
    </div>
    <div id="TitleArea_End"></div>
</div>

<!-- 主内容区域（数据列表或表单显示） -->
<div id="MainArea">
    <!-- 表单内容 -->
    <form action="update_Dessert.action" method="post" enctype="multipart/form-data">
        <!-- 本段标题（分段标题） -->
        <div class="ItemBlock_Title">
            <img width="4" height="7" border="0" src="${pageContext.request.contextPath}/detail/style/images/item_point.gif"> 商品信息&nbsp;
        </div>
        <!-- 本段表单字段 -->
        <div class="ItemBlockBorder">
            <div class="ItemBlock">
                <div class="ItemBlock2">
                    <table cellpadding="0" cellspacing="0" class="mainForm">
                        <tr>
                            <td width="80px">商品类型</td>
                            <td>
                                <select name="dessert.dessertType" style="width:80px">
                                    <c:forEach items="${dessertType}" var="dt" varStatus="status">
                                        <option value="${dt.typeId}"
                                                selected="selected"
                                        >${dt.typeName}</option>
                                    </c:forEach>

                                </select>
                               <input type="hidden" name="dessert.dessertId" value="${dessert.dessertId}" /></td>
                        </tr>
                        <tr>
                            <td width="80px">商品名称</td>
                            <td><input type="text" name="dessert.dessertName" class="InputStyle" value="${dessert.dessertName}"/> </td>
                        </tr>
                        <tr>
                            <td>商品价格</td>
                            <td><input type="text" name="dessert.dessertPrice" class="InputStyle" value="${dessert.dessertPrice}"/> </td>
                        </tr>

                        <tr>
                            <td>商品简介</td>
                            <td><textarea name="dessert.desertMark" class="TextareaStyle">${dessert.dessertIcon}</textarea></td>
                        </tr>
                        <tr>
                            <td width="80px">商品图片</td>
                            <td>

                                <img style='max-width:68px;width:68px;width:expression(width>68?"68px":width "px");max-width: 68px;'
                                     src="http://111.230.151.32/images/${dessert.dessertIcon}">
                                <%--<input type="hidden" name="dessert.dessertIcon" value="${dessert.dessertIcon}">--%>

                                <input type="file" name="file1"/>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>


        <!-- 表单操作 -->
        <div id="InputDetailBar">


            <input type="submit" value="修改" class="FunctionButtonInput">




            <a href="javascript:history.go(-1);" class="FunctionButton">返回</a>
        </div>
    </form>
</div>
</body>
</html>
